IMCFileIterator Struct Reference
[MCCore]

Inheritance diagram for IMCFileIterator:

IMCUnknown List of all members.

Public Member Functions

virtual void MCCOMAPI First (IMCFile *aFile)=0
virtual void MCCOMAPI Next (IMCFile *aFile)=0
virtual boolean MCCOMAPI More (void)=0

Detailed Description

Defines an iterator of the a folder and its subfolders. To create such an iterator use : IShFileUtilities::CreateIMCFileIterator()

It can be used as follows:

    TMCCountedPtr<IMCFileIterator> iter;
    gFileUtilities->CreateIMCFileIterator(&iter,TMCString255("C:\MyFolder"),NULL);
   
    TMCCountedPtr<IMCFile> file;
    gFileUtilities->CreateIMCFile(&file);
   
    for (iter.First(file),iter.More();iter.Next(file))
    {
    ...
    }


Member Function Documentation

virtual void MCCOMAPI IMCFileIterator::First (  IMCFile *  aFile  )  [pure virtual]
 

Returns the first file.

Parameters:
aFile A pointer to an IMCFile that will contain the first file path.

virtual boolean MCCOMAPI IMCFileIterator::More (  void   )  [pure virtual]
 

Returns true if there are more files to iterate over.

virtual void MCCOMAPI IMCFileIterator::Next (  IMCFile *  aFile  )  [pure virtual]
 

Returns the next file.

Parameters:
aFile A pointer to an IMCFile that will contain the next file path.


The documentation for this struct was generated from the following file:
Generated on Wed Dec 7 14:27:36 2005 for Carrara SDK Doc by  doxygen 1.4.5